package com.woniu.market_stall.vo;

import com.woniu.market_stall.utils.DateUtil;

import java.util.Date;

public class StallDetailVo {
    private Integer id;

    private Integer stallId;

    private Double rentPrice;

    private int rentData;

    private String startDate;

    private Integer userId;

    private Date endTime;

    private Integer status;

    private Integer isDelete;

    private String username;



    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getStartDate() {
        try {
            return DateUtil.dateMinusMonth(endTime, rentData);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStallId() {
        return stallId;
    }

    public void setStallId(Integer stallId) {
        this.stallId = stallId;
    }

    public Double getRentPrice() {
        return rentPrice;
    }

    public void setRentPrice(Double rentPrice) {
        this.rentPrice = rentPrice;
    }

    public int getRentData() {
        return rentData;
    }

    public void setRentData(int rentData) {
        this.rentData = rentData;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }
}